
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no"/>
    <title>货款提现</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css"/>
    <link rel="stylesheet" type="text/css" href="../css/common.css" />
    <link rel="stylesheet" type="text/css" href="../css/style.css" />
    <style>
        body {
            font-size: 14px;
        }

        footer.aui-nav {
            z-index: 99999;
        }

        header.aui-bar {
            background: #fff;
        }

        .aui-nav .aui-bar-tab .active .aui-iconfont, .aui-nav .aui-bar-tab .active p {
            color: #327afa !important;
        }

        .active {
            color: #327afa !important;
        }

        .aui-tab-nav li.active {
            color: #327afa;
            border-bottom: 2px #327afa solid;
        }

        .aui-bar .aui-iconfont {
            color: #000;
        }

        .walletInfo {
            position: relative;
            width: 100%;
            overflow: hidden;
            background: #00a9e3;
            text-align: left;
            padding: 0 0 15px 15px;
        }

        .walletInfo p {
            font-size: 28px;
            color: #fff;
            line-height: 28px;
        }

        .tixianBtn {
            color: #fff;
            border: 1px solid #fff;
            display: inline-block;
            padding: 12px 22px;
            position: absolute;
            right: 15px;
            top: 25px;
            line-height: 12px;
            border-radius: 5px;
        }

        .wallet_set {
            /*position: absolute;*/
            color: #000;
        }
    </style>
</head>
<body>
<header class="aui-bar aui-bar-nav aui-border-b">
    <div class="aui-pull-left aui-iconfont aui-icon-left icon-left-coler" tapmode onclick="closeWin()"></div>
    <div class="aui-title">
        我的货款
    </div>
    <div class="walletInfo dispalyNone-unImportant">
        <span class="myMoneText" style="color:#fff;">当前货款（元）</span>
        <p id="money_unwithdrawn">---</p>
        <span class="tixianBtn" tapmode onclick="openToTwo('myMoneyWithdraw_win')">提现</span>
    </div>
    <ul class="aui-tab-nav aui-border-t haderTitle">
        <li class="active" data-type="shouru" tapmode onclick="changeCheck(this)">
            收入明细
        </li>
        <li data-type="tixian" tapmode onclick="changeCheck(this)">
            提现明细
        </li>
    </ul>
</header>


</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript" src="../script/jquery-1.11.3.js"></script>
<script type="text/javascript">
    apiready = function () {
        api.parseTapmode();
        var mobile = api.pageParam.mobile;
        var header = $api.dom('header');

        $api.fixIos7Bar(header);
        
        getStorageAll();
        getUserInfo();
        if(member_type=="agent"){
            $(".aui-title").text("我的分润");
            $(".myMoneText").text("当前分润（元）")
            $(".walletInfo").show()
        }
//        api.refreshHeaderLoading();
//        api.setRefreshHeaderInfo({
//            visible : true,
//            loadingImg : 'widget://image/ptr_pull.png',
//            bgColor : '#efeff4',
//            textColor : '#959595',
//            textDown : '刷新动态',
//            textUp : '松开刷新',
//            showTime : true
//        }, function(ret, err) {
////            page = 1;
////            isLock=false;
//            getStorageAll();
//            getUserInfo();
//        });

        var header_h = $api.offset(header).h;
        var body_h = $api.offset($api.dom('body')).h - header_h;
        api.openFrame({
            name: 'myMoneyManage_frm',
            url: 'myMoneyManage_frm.html',
            rect: {
                x: 0,
                y: header_h,
                w: 'auto',
                h: body_h
            },
            pageParam: {
                mobile: mobile
            },
            bounces: true,
            vScrollBarEnabled: false,
            hScrollBarEnabled: false
        });
        //提现后的监听
        api.addEventListener({
            name: "updateUserInfo"
        }, function (ret, err) {
            if (ret && ret.value) {
                getUserInfo();
            }
        })
    }
    //为了在下面的热门类别可以通用，单独出来
    function changeCheck(obj) {
        $(obj).parent().find("li").removeClass("active");
        $(obj).addClass("active");
        var type = $(obj).attr("data-type");
        api.execScript({
            frameName: "myMoneyManage_frm",
            script: "changeContent('" + type + "')"
        })
    }
    function setMoney() {

    }
</script>
</html>
